
package com.scs.application.modules.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.base.entity.Manufacturer;
import com.scs.application.modules.base.request.ManufacturerQueryRequest;
import com.scs.application.modules.base.vo.ExcelManufacturerVO;

import java.util.List;
import java.util.Map;


/**
 * 厂商 service 接口
 */
public interface ManufacturerService extends IBaseService<Manufacturer> {

    IPage<Manufacturer> page(ManufacturerQueryRequest request);

    List<Manufacturer> list(ManufacturerQueryRequest request);

    /**
     * 新增厂商信息 同一供应商下，社会信用代码唯一
     *
     * @param entity
     * @return
     */
    boolean add(Manufacturer entity);

    /**
     * 更新厂商信息
     *
     * @param entity
     * @return
     */
    boolean update(Manufacturer entity);

    int countForHospital(ManufacturerQueryRequest request);

    Map<String, String> findByIds(List<String> ids);
    /**
     * excel导出模板查询
     */
    List<ExcelManufacturerVO> listExcel(ManufacturerQueryRequest request);


}
